import request from '@/utils/request'

// 查询废弃物和水列表
export function listWasteWater(query) {
  return request({
    url: '/wasteWater/wasteWater/list',
    method: 'get',
    params: query
  })
}

// 查询废弃物和水详细
export function getWasteWater(id) {
  return request({
    url: '/wasteWater/wasteWater/' + id,
    method: 'get'
  })
}

// 新增废弃物和水
export function addWasteWater(data) {
  return request({
    url: '/wasteWater/wasteWater',
    method: 'post',
    data: data
  })
}

// 修改废弃物和水
export function updateWasteWater(data) {
  return request({
    url: '/wasteWater/wasteWater',
    method: 'put',
    data: data
  })
}

// 删除废弃物和水
export function delWasteWater(id) {
  return request({
    url: '/wasteWater/wasteWater/' + id,
    method: 'delete'
  })
}

// 导出废弃物和水
export function exportWasteWater(query) {
  return request({
    url: '/wasteWater/wasteWater/export',
    method: 'get',
    params: query
  })
}